﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Repositories.Interfaces;
using Repositories;

namespace AsiaSnackExpress
{
    public partial class Admin : System.Web.UI.Page
    {
        #region Properties


        ICategoryRepository _categoryRep;
        public ICategoryRepository CategoryRep
        {
            get
            {
                if (_categoryRep == null)
                {
                    _categoryRep = DIHelper.Resolve<ICategoryRepository>();
                }
                return _categoryRep;
            }

        }


        #endregion

        protected override void OnLoad(EventArgs e)
        {
            DIHelper.Configure();
            base.OnLoad(e);
        }


        protected void Page_Load(object sender, EventArgs e)
        {
            //Check loock in

        }
    }
}